using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace DataLayerTest.Models.Mapping
{
    public class OutdoorExerciseMap : EntityTypeConfiguration<OutdoorExercise>
    {
        public OutdoorExerciseMap()
        {
            // Primary Key
            this.HasKey(t => t.Id);

            // Properties
            // Table & Column Mappings
            this.ToTable("OutdoorExercise");
            this.Property(t => t.Id).HasColumnName("Id");
            this.Property(t => t.Steps).HasColumnName("Steps");
            this.Property(t => t.Floors).HasColumnName("Floors");
            this.Property(t => t.Distance).HasColumnName("Distance");
            this.Property(t => t.ActivationDate).HasColumnName("ActivationDate");
        }
    }
}
